/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question1.polymophism.studentImpl;

import za.ac.cput.dcpApplication.question1.polymophism.LoanInterest;

/**
 *
 * @author spheshie
 */
public class UnderGrad extends StudentImpl implements LoanInterest {
    
    public UnderGrad() {}
    
    public UnderGrad(String nm, String num, double amt)
    {
        super(nm, num, amt);
    }
    
    public double interest()
    {
        return getLoanAmount() + (getLoanAmount()* 0.12);
    }
    
}
